home *** CD-ROM | disk | FTP | other *** search
/ Amiga Tools 2 / Amiga Tools 2.iso / tools / mg / src.lzh / amiga / varargs.h < prev   
Text File  |  1990-05-23  |  344b  |  11 lines

  1. /*
  2.  * Varargs, for use on AmigaDOS with the Lattice C compiler, or (maybe?) the
  3.  * Manx compiler with 32-bit ints. Blatantly lifted from 4.2BSD.
  4.  */
  5.  
  6. typedef char   *va_list;
  7. #define va_dcl        int va_alist;
  8. #define va_start(pv)    pv = (char *) &va_alist
  9. #define va_end(pv)        /* Naught to do... */
  10. #define va_arg(pv, t)    ((t *) (pv += sizeof(t)))[-1]
  11.